package com.gotech.entity;

import java.io.Serializable;

public class User implements Serializable {
    private String username;
    private String password;
    private boolean flag;
    private int score;

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", flag=" + flag +
                ", score=" + score +
                '}';
    }

    public User() {
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public User(String username, String password, boolean flag, int score) {
        this.username = username;
        this.password = password;
        this.flag = flag;
        this.score = score;
    }
}
